export interface ActiviModel{
    id:any
    name:string
    context:string
    createTime:any
    image:string
}

import type { Page } from "../page"
export interface HotActiviModelParam extends Page{
    hotspot:any
    type: any
}

//新闻列表
export async function newsListApi(page:HotActiviModelParam){
    return usePost<any>('/web/studyLists',page)
}

export async function newsApi(id:any){
    return useGet<ActiviModel>(`/web/findStudyById/${id}`)
}

//热门新闻

export async function hotNewsApi(param:HotActiviModelParam){
    return usePost<any>('/web/studyLists',param)
}
